/* 好物剪影页面样式 */
.goods-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-family: "Microsoft YaHei", "SimSun", serif;
  color: #2C3E50;
  font-size: 24rpx;
}

/* 页面头部 */
.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40rpx 30rpx;
  color: white;
  position: relative;
  overflow: hidden;
  /* 添加安全区域适配 */
  padding-top: calc(40rpx + env(safe-area-inset-top));
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.header-content {
  position: relative;
  z-index: 2;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 20rpx;
  margin-bottom: 20rpx;
}

.title-icon {
  font-size: 48rpx;
}

.title-text {
  font-size: 36rpx;
  font-weight: bold;
  text-shadow: 0 2rpx 4rpx rgba(0,0,0,0.3);
}

.header-stats {
  display: flex;
  gap: 30rpx;
  font-size: 24rpx;
  opacity: 0.9;
}

/* 搜索和筛选 */
.search-section {
  padding: 30rpx;
  background: white;
  box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.1);
}

.search-box {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 25rpx;
  padding: 20rpx 30rpx;
  margin-bottom: 30rpx;
  border: 2rpx solid #e9ecef;
}

.search-icon {
  font-size: 28rpx;
  margin-right: 20rpx;
  color: #6c757d;
}

.search-input {
  flex: 1;
  font-size: 28rpx;
  color: #2C3E50;
  background: transparent;
  border: none;
  outline: none;
}

.search-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 15rpx 30rpx;
  border-radius: 20rpx;
  font-size: 24rpx;
  font-weight: bold;
  box-shadow: 0 4rpx 12rpx rgba(40,167,69,0.3);
}

.filter-tabs {
  display: flex;
  gap: 20rpx;
  overflow-x: auto;
}

.filter-tab {
  background: #f8f9fa;
  padding: 15rpx 30rpx;
  border-radius: 20rpx;
  font-size: 24rpx;
  color: #6c757d;
  border: 2rpx solid #e9ecef;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.filter-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  box-shadow: 0 4rpx 12rpx rgba(102,126,234,0.3);
}

/* 商品列表 */
.goods-list {
  padding: 30rpx;
  display: flex;
  flex-direction: column;
  gap: 30rpx;
}

.goods-item {
  background: white;
  border-radius: 20rpx;
  overflow: hidden;
  box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
}

.goods-item:active {
  transform: translateY(2rpx);
  box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.1);
}

.item-image {
  width: 100%;
  height: 300rpx;
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.item-image image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-badge {
  position: absolute;
  top: 20rpx;
  right: 20rpx;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  padding: 8rpx 16rpx;
  border-radius: 15rpx;
  font-size: 20rpx;
  font-weight: bold;
}

.item-info {
  padding: 30rpx;
}

.item-name {
  font-size: 32rpx;
  font-weight: bold;
  color: #2C3E50;
  margin-bottom: 15rpx;
}

.item-desc {
  font-size: 26rpx;
  color: #6c757d;
  margin-bottom: 20rpx;
  line-height: 1.4;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20rpx;
}

.item-price {
  font-size: 36rpx;
  font-weight: bold;
  color: #dc3545;
}

.item-seller {
  font-size: 24rpx;
  color: #6c757d;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10rpx;
  margin-bottom: 20rpx;
}

.tag {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  color: #495057;
  padding: 8rpx 16rpx;
  border-radius: 15rpx;
  font-size: 22rpx;
  border: 1rpx solid #ced4da;
}

.item-action {
  padding: 0 30rpx 30rpx;
}

.action-btn {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  padding: 20rpx 40rpx;
  border-radius: 25rpx;
  font-size: 26rpx;
  font-weight: bold;
  text-align: center;
  display: block;
  box-shadow: 0 4rpx 12rpx rgba(0,123,255,0.3);
  transition: all 0.3s ease;
}

.action-btn:active {
  transform: translateY(2rpx);
  box-shadow: 0 2rpx 8rpx rgba(0,123,255,0.3);
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 100rpx 30rpx;
  background: white;
  border-radius: 20rpx;
  box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.1);
  margin: 30rpx;
}

.empty-icon {
  font-size: 80rpx;
  margin-bottom: 30rpx;
  opacity: 0.5;
}

.empty-title {
  font-size: 32rpx;
  font-weight: bold;
  color: #2C3E50;
  margin-bottom: 15rpx;
}

.empty-desc {
  font-size: 26rpx;
  color: #6c757d;
}

/* 加载更多 */
.load-more {
  text-align: center;
  padding: 30rpx;
}

.load-more-btn {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  padding: 20rpx 40rpx;
  border-radius: 25rpx;
  font-size: 26rpx;
  font-weight: bold;
  box-shadow: 0 4rpx 12rpx rgba(108,117,125,0.3);
}

/* 悬浮按钮 */
.fab {
  position: fixed;
  bottom: 120rpx;
  right: 30rpx;
  width: 100rpx;
  height: 100rpx;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8rpx 24rpx rgba(40,167,69,0.4);
  z-index: 1000;
  transition: all 0.3s ease;
}

.fab:active {
  transform: scale(0.95);
  box-shadow: 0 4rpx 16rpx rgba(40,167,69,0.4);
}

.fab-icon {
  font-size: 40rpx;
  color: white;
}

/* 响应式设计 */
@media (max-width: 750rpx) {
  .header-stats {
    flex-direction: column;
    gap: 10rpx;
  }
  
  .filter-tabs {
    gap: 15rpx;
  }
  
  .filter-tab {
    padding: 12rpx 25rpx;
    font-size: 22rpx;
  }
  
  .item-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10rpx;
  }
} 